//2009/08/22 20:05:09
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class DiamondHunt
{
public:
    int countDiamonds(string mine)
    {
        int ret = 0;
        while (mine.find("<>") != string::npos)
            mine.erase(mine.find("<>"), 2), ret++;
        return ret;
    }
};
